package jin.si.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class JsUserCoupon {

  private Integer couponId;//优惠卷信息表主键
  private Integer couponCode;//优惠券编号
  private String couponName;//优惠卷名称
  private Integer couponPrice;//优惠卷金额
  private String pricuteUrl;//图片路径
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  private Date startDate;//开始时间
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  private Date endDate;//结束时间
  private String endDatee;
  private Integer online;//是否上线(2上线，3不上线)
  private Integer mode;//发放方式(2自动发放，3活动领取，4人工发放，5无限制)
  private Integer issueQuantity;//发行数量
  private Integer surplus;//剩余数量
  private Integer type;//类型(2商品，3视频,4无限制)
  private Integer typee;//类型(2商品，3视频,4无限制)
  private String createId;//创建人
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  private Date createDate;//创建时间
  private String updateId;//更新人
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  private Date updateDate;//更新时间
  private Integer userId;//用户id
  private Integer state;//状态(2已使用，3未使用)
  private String icon;//符号
  private Integer countNum;
  private Float couponMoney;
  private Boolean checked=false;

  public JsUserCoupon() {
    super();
  }

  public JsUserCoupon(Integer couponId, Integer couponCode, String couponName, Integer couponPrice, String pricuteUrl, Date startDate, Date endDate, String endDatee, Integer online, Integer mode, Integer issueQuantity, Integer surplus, Integer type, Integer typee, String createId, Date createDate, String updateId, Date updateDate, Integer userId, Integer state, String icon, Integer countNum, Float couponMoney, Boolean checked) {
    this.couponId = couponId;
    this.couponCode = couponCode;
    this.couponName = couponName;
    this.couponPrice = couponPrice;
    this.pricuteUrl = pricuteUrl;
    this.startDate = startDate;
    this.endDate = endDate;
    this.endDatee = endDatee;
    this.online = online;
    this.mode = mode;
    this.issueQuantity = issueQuantity;
    this.surplus = surplus;
    this.type = type;
    this.typee = typee;
    this.createId = createId;
    this.createDate = createDate;
    this.updateId = updateId;
    this.updateDate = updateDate;
    this.userId = userId;
    this.state = state;
    this.icon = icon;
    this.countNum = countNum;
    this.couponMoney = couponMoney;
    this.checked = checked;
  }

  public Integer getCouponId() {
    return couponId;
  }

  public void setCouponId(Integer couponId) {
    this.couponId = couponId;
  }

  public Integer getCouponCode() {
    return couponCode;
  }

  public void setCouponCode(Integer couponCode) {
    this.couponCode = couponCode;
  }

  public String getCouponName() {
    return couponName;
  }

  public void setCouponName(String couponName) {
    this.couponName = couponName;
  }

  public Integer getCouponPrice() {
    return couponPrice;
  }

  public void setCouponPrice(Integer couponPrice) {
    this.couponPrice = couponPrice;
  }

  public String getPricuteUrl() {
    return pricuteUrl;
  }

  public void setPricuteUrl(String pricuteUrl) {
    this.pricuteUrl = pricuteUrl;
  }

  public Date getStartDate() {
    return startDate;
  }

  public void setStartDate(Date startDate) {
    this.startDate = startDate;
  }

  public Date getEndDate() {
    return endDate;
  }

  public void setEndDate(Date endDate) {
    this.endDate = endDate;
  }

  public String getEndDatee() {
    return endDatee;
  }

  public void setEndDatee(String endDatee) {
    this.endDatee = endDatee;
  }

  public Integer getOnline() {
    return online;
  }

  public void setOnline(Integer online) {
    this.online = online;
  }

  public Integer getMode() {
    return mode;
  }

  public void setMode(Integer mode) {
    this.mode = mode;
  }

  public Integer getIssueQuantity() {
    return issueQuantity;
  }

  public void setIssueQuantity(Integer issueQuantity) {
    this.issueQuantity = issueQuantity;
  }

  public Integer getSurplus() {
    return surplus;
  }

  public void setSurplus(Integer surplus) {
    this.surplus = surplus;
  }

  public Integer getType() {
    return type;
  }

  public void setType(Integer type) {
    this.type = type;
  }

  public Integer getTypee() {
    return typee;
  }

  public void setTypee(Integer typee) {
    this.typee = typee;
  }

  public String getCreateId() {
    return createId;
  }

  public void setCreateId(String createId) {
    this.createId = createId;
  }

  public Date getCreateDate() {
    return createDate;
  }

  public void setCreateDate(Date createDate) {
    this.createDate = createDate;
  }

  public String getUpdateId() {
    return updateId;
  }

  public void setUpdateId(String updateId) {
    this.updateId = updateId;
  }

  public Date getUpdateDate() {
    return updateDate;
  }

  public void setUpdateDate(Date updateDate) {
    this.updateDate = updateDate;
  }

  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }

  public Integer getState() {
    return state;
  }

  public void setState(Integer state) {
    this.state = state;
  }

  public String getIcon() {
    return icon;
  }

  public void setIcon(String icon) {
    this.icon = icon;
  }

  public Integer getCountNum() {
    return countNum;
  }

  public void setCountNum(Integer countNum) {
    this.countNum = countNum;
  }

  public Float getCouponMoney() {
    return couponMoney;
  }

  public void setCouponMoney(Float couponMoney) {
    this.couponMoney = couponMoney;
  }

  public Boolean getChecked() {
    return checked;
  }

  public void setChecked(Boolean checked) {
    this.checked = checked;
  }

  @Override
  public String toString() {
    return "JsUserCoupon{" +
            "couponId=" + couponId +
            ", couponCode=" + couponCode +
            ", couponName='" + couponName + '\'' +
            ", couponPrice=" + couponPrice +
            ", pricuteUrl='" + pricuteUrl + '\'' +
            ", startDate=" + startDate +
            ", endDate=" + endDate +
            ", endDatee='" + endDatee + '\'' +
            ", online=" + online +
            ", mode=" + mode +
            ", issueQuantity=" + issueQuantity +
            ", surplus=" + surplus +
            ", type=" + type +
            ", typee=" + typee +
            ", createId='" + createId + '\'' +
            ", createDate=" + createDate +
            ", updateId='" + updateId + '\'' +
            ", updateDate=" + updateDate +
            ", userId=" + userId +
            ", state=" + state +
            ", icon='" + icon + '\'' +
            ", countNum=" + countNum +
            ", couponMoney=" + couponMoney +
            ", checked=" + checked +
            '}';
  }
}
